<?php /* Smarty version Smarty-3.1.12, created on 2013-01-07 07:44:51
         compiled from "templates\lottery.html" */ ?>
<?php /*%%SmartyHeaderCode:1948550ea7b84bb44e7-08067984%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '060c8f0b3454b3a297e725ce69b3a4024e8bc2c5' => 
    array (
      0 => 'templates\\lottery.html',
      1 => 1357544679,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1948550ea7b84bb44e7-08067984',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50ea7b84d44754_32861561',
  'variables' => 
  array (
    'assign_info' => 0,
    'uid' => 0,
    'assign_bannerapp' => 0,
    'assgin_bannerapp' => 0,
    'assign_skeyword' => 0,
    'assign_search' => 0,
    'assign_artcategory' => 0,
    'assign_countapp' => 0,
    'assign_radnom' => 0,
    'assign_listpush' => 0,
    'assign_arr' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50ea7b84d44754_32861561')) {function content_50ea7b84d44754_32861561($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="templates/css/style.css" type="text/css" />
<link rel="stylesheet" href="templates/css/lottery.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="templates/js/jquery.flip.min.js"></script>
<script type="text/javascript" src="templates/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="templates/js/global.js"></script>
<meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['assign_info']->value[1]['info'];?>
" />
<meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['assign_info']->value[2]['info'];?>
" />
<!--[if lt IE 10]>
<script type="text/javascript" src="templates/js/PIE.js"></script>
<![endif]-->
<title><?php echo $_smarty_tpl->tpl_vars['assign_info']->value[0]['info'];?>
</title>
</head>
<body>
	<div id="wrap">
		<div id="nav">
        	<div class="nav_menu">
            	<div class="nav_menu_left">
                	<li><a href="#" onclick="Addme()">收藏本站</a></li>
                    <script>
                    function Addme() {
    					url = document.URL;  //你自己的主页地址
    					title = "游戏扒一扒";  //你自己的主页名称
    					window.external.AddFavorite(url, title);
					}
                    </script>
                    <li>固件</li>
                    <li>新闻中心</li>
                    <li>新手教程</li>
                    <li>越狱</li>
                    <li>微博</li>
                    <li>商务合作</li>
                </div>
                <div class="nav_menu_right">
                	<?php if ($_smarty_tpl->tpl_vars['uid']->value!=''){?>
                	<li><a href="member.php?id=<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
">查看我的积分</a></li>
                    <li><a href="member.php?id=<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
">进入会员中心</a></li>
                    <?php }?>
                	<li><a href="login.php" target="_blank">注册</a></li>
                    <li><a href="login.php" target="_blank">登录</a></li>
                </div>
            </div>
        </div><!--顶部-->
        <div id="header">
        	<div id="banner"><a href="app.php?id=<?php echo $_smarty_tpl->tpl_vars['assign_bannerapp']->value[0]['id'];?>
" target="_blank" title="<?php echo $_smarty_tpl->tpl_vars['assign_bannerapp']->value[0]['name'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['assign_bannerapp']->value[0]['url'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['assgin_bannerapp']->value[0]['name'];?>
" /></a></div>
            <div id="menu">
            	<div class="logo"></div>
                <div class="search">
                	<div class="search_content">
						<div class="search_main">
							<form action="search.php" method="get">
                        	<div class="search_icon"></div>
							
                        	<input class="search_text" name="keywords" type="text" value="<?php echo $_smarty_tpl->tpl_vars['assign_skeyword']->value[0]['name'];?>
" /></div>
							<input class="search_button" type="submit" value="搜索" />
                        	</form>
						
                        	
                    </div>
                    <div class="search_keywords">热门搜索：
                    	<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["s"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['name'] = "s";
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['assign_search']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["s"]['total']);
?>
                        	<a href="search.php?keywords=<?php echo $_smarty_tpl->tpl_vars['assign_search']->value[$_smarty_tpl->getVariable('smarty')->value['section']['s']['index']]['name'];?>
&page=1" target="_blank"><span><?php echo $_smarty_tpl->tpl_vars['assign_search']->value[$_smarty_tpl->getVariable('smarty')->value['section']['s']['index']]['name'];?>
 </span></a>
                        <?php endfor; endif; ?>
                    </div>
                </div>
                	<div class="menu_tab">
                    	<li><a href="index.php" target="_blank">iPhone游戏</a></li>
                        <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["c"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['name'] = "c";
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['assign_artcategory']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["c"]['total']);
?>
                        	<li><a href="article_list.php?page=1&id=<?php echo $_smarty_tpl->tpl_vars['assign_artcategory']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['id'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['assign_artcategory']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['name'];?>
</a></li>
                        <?php endfor; endif; ?>
<!--                        <li>游戏测评</li>
                        <li>iPhone新闻</li>-->
                        <li class="selected"><a href="lottery.php" target="_blank">积分兑奖</a></li>
                    </div>
            </div>
            <div id="menu_list">
				<div class="listmenu">
              		<li><a href="index.php" target="_blank">首页</a></li>
                	<li><a href="app_list23.php?page=1&order=0&id=0&pri=1&ca=&kw=&pre=" target="_blank">限时免费</a></li>
                	<li><a href="app_list23.php?page=1&order=1&id=0&pri=0&ca=&kw=&pre=" target="_blank">热门游戏</a></li>
                	<li><a href="app_list23.php?page=1&order=0&id=0&pri=0&ca=&kw=&pre=" target="_blank">最新APP应用</a></li>
                	<li><a href="app_list23.php?page=1&id=0&pri=0&ca=0&kw=1&pre=" target="_blank">网游</a></li>
				</div>
                <div class="app_count"><h1>共<?php echo $_smarty_tpl->tpl_vars['assign_countapp']->value;?>
个应用,今日更新<?php echo $_smarty_tpl->tpl_vars['assign_radnom']->value;?>
个应用</h1></div>
            </div>
        </div><!--头部-->
        <div id="container" class="<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
">
			
			<div id="content">
            	<div id="content_left">
					<div id="article_list">
						<div class="location">首页>>>抽奖</div>
						<div class="recomm">
							<div class="jieshao">推荐应用</div>
                            <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["p"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['name'] = "p";
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['assign_listpush']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["p"]['total']);
?>
							<li>
								<div class="image"><a href="app.php?id=<?php echo $_smarty_tpl->tpl_vars['assign_listpush']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id'];?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['assign_listpush']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['path'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['assign_listpush']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['name'];?>
" width="154px" height="116px" /></a></div>
								<div class="desc"><a href="app.php?id=<?php echo $_smarty_tpl->tpl_vars['assign_listpush']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['id'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['assign_listpush']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]['name'];?>
</a></div>
							</li>
                            <?php endfor; endif; ?>
						</div>
					</div>
                </div><!--左侧-->
				<div id="content_right">
                	<div class="lottery_intro">
                    	<div class="title">抽奖说明</div>
						<span>【抽奖规则】</span>
                        <p>本站积分可用于抽奖，有机会获得Q币、iPod、手机充值卡、iPhone5、iPad3等奖励。</p>
                        <span>【积分获得方式】</span>
                        <p>1.注册成文本站会员<br />2.登录网站<br />3.下载游戏或APP软件</p>
                        <span>【抽奖规则】</span>
                        <p>本站积分可用于抽奖，有机会获得Q币、iPod、手机充值卡、iPhone5、iPad3等奖励。</p>
                    </div>
                </div><!--右侧-->
				<div id="content_lottery">                	
					<div class="lottery_main">						
						<div id="table">
                        	<dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[0];?>
">1</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[1];?>
">2</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[2];?>
">3</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[3];?>
">4</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[4];?>
">5</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[5];?>
">6</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[6];?>
">7</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[7];?>
">8</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[8];?>
">9</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[9];?>
">10</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[10];?>
">11</dt>
                            <dt option-value="<?php echo $_smarty_tpl->tpl_vars['assign_arr']->value[11];?>
">12</dt>
                            <dd style=" background:#fff; width:968px; height:45px; margin:2px auto;">
								<button id="button" style="display:none;">翻开全部</button>
								<p style="color:#FF0000; font-weight:bold; width:auto; height:25px; line-height:25px; float:right; margin-right:5px">抽奖概率说明</p>
                            </dd>
                        </div>
                            <script>
								var id = $("#container").attr("class");
									if(id == ''){
										alert("抽奖功能只对注册用户开放，若您已是本站注册会员，请您先登录；若不是，注册吧骚年！！");
										window.location.href="login.php";									
									}else{
										$(document).ready(function(){
											$("#table").find("dt").click(function(){
												$dt = $(this);
												var id = $("#container").attr("class");
												var lottery = $dt.html();
												$dt.flip({
													direction:'lr',
													onEnd:function(){
														$("#table").find("dt").unbind("click").css("cursor","default");
														$.ajax({
															url: "like_ajax.php",
															data: {lottery:lottery,id:id},
															type: "post",
															async:"true",
															success:function(data){
																$dt.addClass("select").html("<img src='"+data+"' />");
																$("#table").find("#button").show();
															}
														});
													}
												});
											});
										});							
										$(document).ready(function(){
											$("#button").click(function(){
												var length = document.getElementById("table").getElementsByTagName("dt").length;
												for(var i=0;i<length;i++){
													$select = $("#table").find("dt").eq(i);
													var value = $select.attr("option-value");
													if(!$select.hasClass("select")){
														$select.flip({
															direction:'lr',
															content:"<img src='"+value+"' />",
															onEnd:function(){
																$("#table").find("#button").unbind("click").css("cursor","default");
															}
														});
													}else{
														continue;
													}
												}									
											});
										});
									}//抽奖页面AJAX
							</script>
					</div>
				</div><!--抽奖--><?php }} ?>